package com.deep.spring.v13.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @GetMapping("/test1")
    @ResponseBody
    public String test1() {
        System.out.println("method in controller");
        return "test1";
    }

    @GetMapping("/get")
    @ResponseBody
    public void get() {
        throw new NullPointerException();
    }

}
